package com.aspose.cells;

import java.util.ArrayList;

class zbci {
   private byte a;
   private int b;
   private short c;
   private short d;
   private ArrayList e;

   zbci(int var1) {
      this.a = (byte)var1;
      this.e = new ArrayList();
   }

   void a(int var1, int var2, int var3, int var4, boolean var5) {
      if (var5) {
         this.e.clear();
      }

      com.aspose.cells.b.a.a.ze.a(this.e, (Object)CellArea.createCellArea(var1, var2, var1 + var3 - 1, var2 + var4 - 1));
      if (var5) {
         this.b = var1;
         this.c = (short)var2;
      }

   }

   void a(int var1, int var2) {
      this.b = var1;
      this.c = (short)var2;
      this.d = -1;

      for(int var3 = 0; var3 < this.e.size(); ++var3) {
         CellArea var4 = (CellArea)this.e.get(var3);
         if (var1 >= var4.StartRow && var1 <= var4.EndRow && var2 >= var4.StartColumn && var2 <= var4.EndColumn) {
            this.d = (short)var3;
            break;
         }
      }

      if (this.d == -1) {
         CellArea var5 = new CellArea();
         var5.StartRow = var1;
         var5.EndRow = var1;
         var5.StartColumn = var2;
         var5.EndColumn = var2;
         this.d = (short)this.e.size();
         com.aspose.cells.b.a.a.ze.a(this.e, (Object)var5);
      }

   }

   byte a() {
      return this.a;
   }

   void a(byte var1) {
      this.a = var1;
   }

   public ArrayList b() {
      return this.e;
   }

   public void a(ArrayList var1) {
      this.e = var1;
   }

   int c() {
      return this.b;
   }

   void a(int var1) {
      this.b = var1;
   }

   int d() {
      return this.c;
   }

   void b(int var1) {
      this.c = (short)var1;
   }

   int e() {
      return this.d;
   }

   void c(int var1) {
      this.d = (short)var1;
   }

   void a(zbci var1) {
      this.c = var1.c;
      this.d = var1.d;
      this.b = var1.b;
      this.a = var1.a;
      this.e = new ArrayList();

      for(int var2 = 0; var2 < var1.e.size(); ++var2) {
         com.aspose.cells.b.a.a.ze.a(this.e, (Object)((CellArea)var1.e.get(var2)));
      }

   }
}
